#ifndef ConfigH
#define ConfigH

#include <string>

using namespace std;

enum ConfigFlags {
    DEL_SAY     = 1 << 1,
    DEL_YELL    = 1 << 2,
    DEL_WHISPER = 1 << 3,
    DEL_EMOTE   = 1 << 4,
    DEL_GUILD   = 1 << 5,
    DEL_RAID    = 1 << 6,
    DEL_CHANNEL = 1 << 7,
    DEL_UNKNOWN = 1 << 8,
};

#define DEFAULT_FLAG (DEL_GUILD | DEL_RAID | DEL_CHANNEL | DEL_UNKNOWN)

class Config {
    public:
        Config();
        void loadFromFile();
        void saveToFile();
        bool isDeleteTime() {
            return deleteTime;
        }

        unsigned int getFlag() {
            return flag;
        }

        string getPluginName() {
            return pluginName;
        }

        void setDeleteTime(bool deleteTime);
        void setFlag(unsigned int flag);
        void setPluginName(string name);
    private:
        bool deleteTime;
        string pluginName;
        unsigned int flag;
        


};

#endif
